//
//  TopicDetailViewController.m
//  LoveHappyShopping
//
//  Created by 白水非泉 on 16/6/27.
//  Copyright © 2016年 白水非泉. All rights reserved.
//

#import "TopicDetailViewController.h"
#import "TopicCellModel.h"
@interface TopicDetailViewController ()

@end

@implementation TopicDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self showTheViewInfo];
    // Do any additional setup after loading the view.
}
-(void)showTheViewInfo{
    NSString *urlStr=[NSString stringWithFormat:@"http://zhekou.repai.com/lws/wangyu/index.php?control=tianmao&model=get_sec_ten_two_view&id=%d",self.model.topicContentId];
    NSURL *url=[NSURL URLWithString:urlStr];
    NSURLRequest *request=[NSURLRequest requestWithURL:url];
    UIWebView *webView=[[UIWebView alloc]initWithFrame:self.view.frame];
    webView.backgroundColor=[UIColor whiteColor];
    [webView loadRequest:request];
    self.view=webView;
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
